<template>
	<view class="content">
		<cu-custom bgColor="head2" :isBack="true">
			<block slot="backText"></block>
			<block slot="content">上架提交</block>
		</cu-custom>
		<view class="Search" style="flex-direction: column;height: 354rpx;">
			<input type="text" v-model="wmToUpGoodsstr.wmToUpId" placeholder="wmToUpId" />
			<input type="text" v-model="wmToUpGoodsstr.kuWeiBianMa" placeholder="kuWeiBianMa" />
			<input type="text" v-model="wmToUpGoodsstr.createBy" placeholder="createBy" />
			<button class="btn" @click="submitRacking" type="default" >上架提交</button>		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wmToUpGoodsstr: {
					wmToUpId: "",
					kuWeiBianMa: "",
					createBy: ""
				}
				// wmToUpGoodsstr: {
				// 	wmToUpId: "297e363f7deb92cd017deba7126a000d",
				// 	kuWeiBianMa: "030101",
				// 	createBy: "admin"
				// }
				
			}
		},
		methods: {
			submitRacking() { // 提交上架
				this.$http.post(`wms/rest/pdaapi/wmToUpGoodsController/save?wmToUpGoodsstr=${JSON.stringify(this.wmToUpGoodsstr)}`).then(res => {
					console.log(res)
					this.wmToUpGoodsstr = {
						wmToUpId: "",
						kuWeiBianMa: "",
						createBy: ""
					}				
				})	
			}
				
	    }
	}
</script>

<style lang="less">
	.content {
		width: 100%;
		height: 100vh;
		background-color: #F3F4F6;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		.Search{
			width: 100%;
			height: 101rpx;
			background: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;
			input{
				margin-top: 16rpx;
				padding-left: 36rpx;
				width: 92.66%;
				height: 70rpx;
				background: #F3F4F6;
				border-radius: 30px;
				font-size: 28rpx;
				font-weight: 400;
			}
			.btn {
				background-color: #3194de; 
				width: 100px; 
				height: 40px; 
				margin: 16px 0;
				color: #fff;
				font-size: 14px;
				
			}
			
		}
	}
	
</style>
